<template>
<div>
  <el-form >
    <el-select placeholder="请选择难度">
      <el-option>
      </el-option>
    </el-select>
  <el-button type="primary"  size="small">题目查询</el-button>
  <router-link class="mui-tab-item" :to="{path:'/question/add/'}">
    <el-button  type="primary" size="small">新增题目</el-button>
  </router-link>
  </el-form>

  <el-table style="width:100%" border :data="questioninfo">
    <el-table-column type="index" label="#"></el-table-column>
    <el-table-column prop="id" label="题目编号"></el-table-column>
    <el-table-column prop="name" label="题目名称"></el-table-column>
    <el-table-column prop="type" label="题目类型"></el-table-column>
    <el-table-column prop="easy" label="题目难度"></el-table-column>
    <el-table-column prop="message" label="备注"></el-table-column>
    <el-table-column prop="role_name" label="用户权限"></el-table-column>
    <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button type="primary" icon="el-icon-edit" circle @click="update(scope.row)"></el-button>
        <el-button type="warning" icon="el-icon-star-off" circle></el-button>
        <el-button type="danger" icon="el-icon-delete" circle @click="dele(scope.row)"></el-button>
      </template>
    </el-table-column>
  </el-table>
</div>
</template>
<script>

</script>


<style scoped>
</style>
